package ac2.util.serial.packets;

public class SetModePacket extends AC2Packet {

	public SetModePacket(byte[] packet) throws Exception
	{
		super(packet);
	}
	
	byte mode;
	public SetModePacket(byte target, byte mode)
	{
		super(target, (byte)0x03);
		this.mode = mode;
	}
	
	@Override
	protected void fillBody(byte[] packet, int start, int length) {
		packet[start] = 0;
		packet[start + 1] = mode;
		packet[start + 2] = 0;
		
	}
	
	@Override
	protected void parseBody() {
		// NOT DOING ANYTHING WITH THIS...SENDING ONLY
		
	}

}
